/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.velocityme.www.dto;

import java.io.Serializable;

/**
 *
 * @author rcrida
 */
public class IdName implements Serializable {

    Long m_id;
    String m_name;

    /** Creates a new instance of NumberString */
    public IdName() {
    }

    public IdName(Long id, String name) {
        m_id = id;
        m_name = name;
    }

    public Long getId() {
        return m_id;
    }

    public void setId(Long id) {
        m_id = id;
    }

    public String getName() {
        return m_name;
    }

    public void setName(String name) {
        m_name = name;
    }

    @Override
    public boolean equals(Object other) {
        if (other instanceof IdName) {
            IdName oth = (IdName)other;
            return m_name.equals(oth.m_name) && m_id.equals(oth.m_id);
        }
        return false;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 53 * hash + (this.m_id != null ? this.m_id.hashCode() : 0);
        hash = 53 * hash + (this.m_name != null ? this.m_name.hashCode() : 0);
        return hash;
    }

}
